-
Notifications
You must be signed in to change notification settings - Fork 1k
Fixed issue where firebase init hosting re-prompts for source #8617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/init/features/hosting/index.ts
Outdated
default: true, | ||
}); | ||
setup.hosting.useDiscoveredFramework = | ||
setup.hosting.useDiscoveredFramework || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could simplify with ||=
here for same effect but you really should be using ??
or ??=
here since we want false
to be a cachable value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same feedback for other changed lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback! Will update
Description
Fixes #8587
From what I can tell, the previous behavior of
promptOnce
andprompt
was that, once a question has an answer, we no longer prompt for that question--- promptOnce
firebase-tools/src/prompt.ts
Lines 108 to 113 in 8cc734b
--- prompt
firebase-tools/src/prompt.ts
Lines 47 to 70 in 8cc734b
Scenarios Tested
Verified that the prompts behave the same as the old versions (14.2.2)
14.2.2 behavior
branch behavior
Sample Commands